Optimal. Leaf size=117 \[ \frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{\sqrt{a-b} \tanh ^{-1}\left (\frac{\sqrt{a+b \tan ^2(e+f x)}}{\sqrt{a-b}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.146467, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {3670, 446, 88, 50, 63, 208} \[ \frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{\sqrt{a-b} \tanh ^{-1}\left (\frac{\sqrt{a+b \tan ^2(e+f x)}}{\sqrt{a-b}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 446
Rule 88
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \tan ^5(e+f x) \sqrt{a+b \tan ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^5 \sqrt{a+b x^2}}{1+x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^2 \sqrt{a+b x}}{1+x} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{(-a-b) \sqrt{a+b x}}{b}+\frac{\sqrt{a+b x}}{1+x}+\frac{(a+b x)^{3/2}}{b}\right ) \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{\operatorname{Subst}\left (\int \frac{\sqrt{a+b x}}{1+x} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{(a-b) \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt{a+b x}} \, dx,x,\tan ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}+\frac{(a-b) \operatorname{Subst}\left (\int \frac{1}{1-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b \tan ^2(e+f x)}\right )}{b f}\\ &=-\frac{\sqrt{a-b} \tanh ^{-1}\left (\frac{\sqrt{a+b \tan ^2(e+f x)}}{\sqrt{a-b}}\right )}{f}+\frac{\sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{(a+b) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f}+\frac{\left (a+b \tan ^2(e+f x)\right )^{5/2}}{5 b^2 f}\\ \end{align*}
Mathematica [A] time = 1.35958, size = 109, normalized size = 0.93 \[ \frac{\frac{\sqrt{a+b \tan ^2(e+f x)} \left (-2 a^2+b (a-5 b) \tan ^2(e+f x)-5 a b+3 b^2 \tan ^4(e+f x)+15 b^2\right )}{b^2}-15 \sqrt{a-b} \tanh ^{-1}\left (\frac{\sqrt{a+b \tan ^2(e+f x)}}{\sqrt{a-b}}\right )}{15 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 166, normalized size = 1.4 \begin{align*}{\frac{ \left ( \tan \left ( fx+e \right ) \right ) ^{2}}{5\,fb} \left ( a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{2\,a}{15\,f{b}^{2}} \left ( a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{1}{3\,fb} \left ( a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}}+{\frac{1}{f}\sqrt{a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2}}}-{\frac{b}{f}\arctan \left ({\sqrt{a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2}}{\frac{1}{\sqrt{-a+b}}}} \right ){\frac{1}{\sqrt{-a+b}}}}+{\frac{a}{f}\arctan \left ({\sqrt{a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2}}{\frac{1}{\sqrt{-a+b}}}} \right ){\frac{1}{\sqrt{-a+b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \tan \left (f x + e\right )^{2} + a} \tan \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.72676, size = 770, normalized size = 6.58 \begin{align*} \left [\frac{15 \, \sqrt{a - b} b^{2} \log \left (-\frac{b^{2} \tan \left (f x + e\right )^{4} + 2 \,{\left (4 \, a b - 3 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 4 \,{\left (b \tan \left (f x + e\right )^{2} + 2 \, a - b\right )} \sqrt{b \tan \left (f x + e\right )^{2} + a} \sqrt{a - b} + 8 \, a^{2} - 8 \, a b + b^{2}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) + 4 \,{\left (3 \, b^{2} \tan \left (f x + e\right )^{4} +{\left (a b - 5 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 2 \, a^{2} - 5 \, a b + 15 \, b^{2}\right )} \sqrt{b \tan \left (f x + e\right )^{2} + a}}{60 \, b^{2} f}, \frac{15 \, \sqrt{-a + b} b^{2} \arctan \left (\frac{2 \, \sqrt{b \tan \left (f x + e\right )^{2} + a} \sqrt{-a + b}}{b \tan \left (f x + e\right )^{2} + 2 \, a - b}\right ) + 2 \,{\left (3 \, b^{2} \tan \left (f x + e\right )^{4} +{\left (a b - 5 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 2 \, a^{2} - 5 \, a b + 15 \, b^{2}\right )} \sqrt{b \tan \left (f x + e\right )^{2} + a}}{30 \, b^{2} f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a + b \tan ^{2}{\left (e + f x \right )}} \tan ^{5}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20562, size = 193, normalized size = 1.65 \begin{align*} \frac{{\left (a - b\right )} \arctan \left (\frac{\sqrt{b \tan \left (f x + e\right )^{2} + a}}{\sqrt{-a + b}}\right )}{\sqrt{-a + b} f} + \frac{3 \,{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{5}{2}} b^{8} f^{4} - 5 \,{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}} a b^{8} f^{4} - 5 \,{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}} b^{9} f^{4} + 15 \, \sqrt{b \tan \left (f x + e\right )^{2} + a} b^{10} f^{4}}{15 \, b^{10} f^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]